<meta charset="UTF-8">
<?php
require_once __DIR__ . '/../database/db_connect.php';
$AS = array();
function loadData()
{
	$strStation = '<meta charset="UTF-8">';
	$db = new DB_CONNECT();
	global $AS;
	mysql_query("SET NAMES 'UTF8'");
	$allS = mysql_query('SELECT * FROM stations') 
						or die('loadData error');
	while($row = mysql_fetch_array($allS))
	{
		$strStation = $strStation . '<option value="' . $row['id'] . 'bkcse' . 
		$row['lat'] . 'bkcse' . $row['lon'] . '">' . $row['name'] . '</option>';
		$arrItem = array();
		$arrItem['id'] = $row['id'];
		$arrItem['name'] = (string)$row['name'];
		$arrItem['lat'] = $row['lat'];
		$arrItem['lon'] = $row['lon'];
		array_push($AS, $arrItem);
	}

	return $strStation;
}
?>